package com.zky.action;

import java.util.List;

import com.zky.DAO.impl.Imp1DaoImp;
import com.zky.common.Pagination;
import com.zky.entity.Imp1;




public class ShoesAction extends Imp1DaoImp {
	public List<Imp1> list;
	public Pagination pagination;
	public int pageNo = 1;
	public int pageSize = 6;
	public int showCount = 6;
	public Imp1 imp1;
	
	public List<Imp1> getList() {
		return list;
	}

	public void setList(List<Imp1> list) {
		this.list = list;
	}

	public Pagination getPagination() {
		return pagination;
	}

	public void setPagination(Pagination pagination) {
		this.pagination = pagination;
	}

	public int getPageNo() {
		return pageNo;
	}

	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getShowCount() {
		return showCount;
	}

	public void setShowCount(int showCount) {
		this.showCount = showCount;
	}

	public Imp1 getImp1() {
		return imp1;
	}

	public void setImp1(Imp1 imp1) {
		this.imp1 = imp1;
	}

	public String findAllShoes(){
		try{	
		   List<Imp1> all  =this.findAll();
		   pagination = new Pagination(pageNo, pageSize, all.size(), showCount,"BackBizShoes.action", "pagenum");
		   list = pagination.getPageDate(all);
		       return "success";
		   }
		  catch(Exception e)
		      {
        e.printStackTrace();
			   return "false";
			    }
		
	}
	
	public List<Imp1> findAllShoes1(){
		
		   List<Imp1> all  =this.findAll();
		     return  all;
		  
		
		
	}

}
